package uk.co.q3c.deplan.server.admin;

import java.util.ArrayList;
import java.util.List;

import uk.co.q3c.deplan.client.admin.ChangeLogEntry;

public class VersionRecord {
	private static String entry236 = "Server upgraded to version 2";
	private static String entry125 = "Server rollback available";
	private static String entry122 = "Build history sorted in reverse order";
	private static String entry121 = "Still getting dependencies right";
	private static String entry120 = "Added dependencies missing from update";
	private static String entry119 = "Build history dialog added (see Help / Version)";
	private static String entry118 = "Ctrl +/- expand/collapse summary tasks (keypad only)";
	private static String interim = "Interim build no affect on user";

	private static List<ChangeLogEntry> changes() {
		ArrayList<ChangeLogEntry> list = new ArrayList<ChangeLogEntry>();
		list.add(new ChangeLogEntry(118, entry118));
		list.add(new ChangeLogEntry(119, entry119));
		list.add(new ChangeLogEntry(120, entry120));
		list.add(new ChangeLogEntry(121, entry121));
		list.add(new ChangeLogEntry(122, entry122));
		list.add(new ChangeLogEntry(123, interim));
		list.add(new ChangeLogEntry(124, interim));
		list.add(new ChangeLogEntry(125, entry125));
		list.add(new ChangeLogEntry(236, entry236));

		return list;
	}

	public static void addToDatabase() {
		List<ChangeLogEntry> list = changes();
		for (ChangeLogEntry cle : list) {
			// connection.calendarService()
			// .save(iut);
		}
		throw new RuntimeException("not yet implemented");

	}

}
